package main

import (
	"sort"
	"strconv"
)

func main() {

}
func findRelativeRanks(score []int) []string {
	n := len(score)
	tmp := make([]int, n)
	copy(tmp, score)
	m := make(map[int]string)
	sort.Slice(tmp, func(i, j int) bool {
		return tmp[i] > tmp[j]
	})
	for i, num := range tmp {
		if i == 0 {
			m[num] = "Gold Medal"
		} else if i == 1 {
			m[num] = "Silver Medal"
		} else if i == 2 {
			m[num] = "Bronze Medal"
		} else {
			m[num] = strconv.Itoa(i + 1)
		}
	}
	res := make([]string, n)
	for i := range score {
		res[i] = m[score[i]]
	}
	return res
}
